package cn.hasayam.test3;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.Update;

import java.util.List;

@Dao
public interface SettingDao {

    @Query("SELECT * FROM settingbean")
    List<SettingBean> getAll();

    @Query("SELECT value FROM settingbean WHERE name=:name")
    String getValue(String name);


    @Insert
    void insert(SettingBean... users);

    @Update
    void update(SettingBean... users);

    @Delete
    void delete(SettingBean... users);
}
